package com.atguigu.service.impl;

import com.atguigu.entity.Tiger;
import com.atguigu.mapper.TigerMapper;
import com.atguigu.service.api.TigerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TigerServiceImpl implements TigerService {
	@Autowired
	private TigerMapper tigerMapper;

	@Override
	public Tiger getTigerById(Integer tigerId) {
		return tigerMapper.getTigerById(tigerId);
	}

	@Override
	public void updateTiger(Tiger tiger) {
		tigerMapper.updateTiger(tiger);
	}
}
